NOTE: This Technical Q&A has been
retired. Please see the Technical Q&As
page for current documentation.![]() ![]() |
Q: I'm trying to link the Open Transport libraries with the Symantec C++
compiler but it complains that A: The routines that are undefined ( The missing routines are only used by two routines, This works just fine with other environments since they parse libraries from
the top down, starting at main and branching outwards to each referenced
routine. Because Symantec C++, however, is more rigorous and notices the missing routines. Symantec's linker has been updated to ignore routines that are undefined and referenced only from routines that are never called. You can enable this update by using the "Smart Check Link" linker option in the latest release of the SC++ environment. If you don't have this latest update, you can simply 'stub out' these routines in your own source file as shown:
This works because these routines are never actually called by any code.
The Note that the sample uses conditional compilation to ensure that the routines are defined inside an extern "C" { } block, lest the link fail because of the name mangler. |
Developer Documentation | Technical Notes | Development Kits | Sample Code |